home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{AD224A25-CA55-11D2-8C26-444553540001}#2.1#0"; "SWBGradient.ocx"
- Begin VB.Form Form1
- AutoRedraw = -1 'True
- Caption = "Gradient Control Demo"
- ClientHeight = 2970
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4230
- LinkTopic = "Form1"
- ScaleHeight = 2970
- ScaleWidth = 4230
- StartUpPosition = 3 'Windows Default
- Begin SWBGradientCtl.SWBGradient SWBGradient1
- Left = 3570
- Top = 2460
- _ExtentX = 423
- _ExtentY = 423
- StartColor = 16711680
- EndColor = 4194304
- End
- Begin VB.CommandButton cmdOrientation
- Caption = "&Change Orientation"
- Height = 345
- Left = 1140
- TabIndex = 5
- Top = 2070
- Width = 1965
- End
- Begin VB.HScrollBar HScroll1
- Height = 225
- LargeChange = 2
- Left = 930
- Max = 255
- Min = 1
- TabIndex = 1
- Top = 1230
- Value = 50
- Width = 2385
- End
- Begin VB.Label Label4
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Max"
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 2970
- TabIndex = 4
- Top = 1500
- Width = 300
- End
- Begin VB.Label Label3
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Min"
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 930
- TabIndex = 3
- Top = 1500
- Width = 255
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Steps"
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 1860
- TabIndex = 2
- Top = 1500
- Width = 405
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Sample Gradient Control Project"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 780
- TabIndex = 0
- Top = 660
- Width = 2715
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdOrientation_Click()
- If (SWBGradient1.Orientation = goVertical) Then
- SWBGradient1.Orientation = goHorizontal
- Else
- SWBGradient1.Orientation = goVertical
- End If
- End Sub
- Private Sub Form_Resize()
- SWBGradient1.Refresh
- End Sub
- Private Sub HScroll1_Change()
- SWBGradient1.Steps = HScroll1.Value
- End Sub
-